import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
const $ = window.$;
class RemarksModal extends Component {
    constructor(args) {
        super();
        this.state = {
            remarks:''
        }
    }
    componentWillReceiveProps(nextProps) {
        this.setState({
            remarks:nextProps.remarks
        })
    }
    render() {
        let party = this.state.party;
        return (
                <div id="remarks_modal" className="beizhu reveal-modal">
                    <div className="beizhu-content">
                        <h1>医院备注</h1>
                        <div className="tishi-content reveal-modal-main">
                        {this.state.remarks}
                        </div>
                        <div className="mui-clearfix"></div>
                        <div onClick={() => {$('.reveal-modal').trigger('reveal:close');}} className="beizhu-btn">
                            <span>确 定</span>
                        </div>
                    </div>
                </div>
        );
    }
}

export default withRouter(RemarksModal);